import os
import sys
import numpy as np
import pandas as pds

# logreocrd.append({'epoch':i,'step':step,'loss':loss.data,"sumacc":accurary[0],"acc_0":accurary[1],"acc_1":accurary[2],"sig":1})
def loginfo(logrecord,logpath):
    with open(logpath,'a',encoding="utf-8") as fp:
        for d in logrecord:
            fp.write("{},{},{},{},{},{},{}\n".format(d['epoch'],d['step'],d["loss"],d["sumacc"],d["acc_0"],d["acc_1"],d['sig']))
    return []